package com.bskj.sj.controller;

import com.bskj.common.web.BaseController;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;


@Controller
@RequestMapping("page")
public class PageForwardController extends BaseController {

	@RequestMapping("{viewModule}/{pageName}")
	public ModelAndView page(@PathVariable String viewModule,
			@PathVariable String pageName) throws Exception {
		ModelAndView mv = getRequestModelAndView();
		mv.setViewName("/" + viewModule + "/" + pageName);
		return mv;
	}

}
